/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.springboot.listener;

import lombok.extern.slf4j.Slf4j;
import net.dreamlu.mica.auto.annotation.AutoContextInitializer;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @desc:
 * @author: shollin
 * @date: 2021/6/19/019 22:22
 */
@Slf4j
@AutoContextInitializer
public class MyApplicationContextInitializer implements ApplicationContextInitializer {

    @Override
    public void initialize(ConfigurableApplicationContext configurableApplicationContext) {
        String applicationName = configurableApplicationContext.getApplicationName();
        System.out.println("MyApplicationContextInitializer "+applicationName);
    }
}
